home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Panorama / Panorama - Disk 19D (1987-07-22)(Pacific North-West Amigas Club)[WB].zip / Panorama - Disk 19D (1987-07-22)(Pacific North-West Amigas Club)[WB].adf / PopCLI3 / PopCLI.doc < prev    next >
Text File  |  1987-06-25  |  7KB  |  145 lines

  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2. /* |_o_o|\\ Copyright (c) 1986 The Software Distillery.  All Rights Reserved */
  3. /* |. o.| || This program may not be distributed without the permission of   */
  4. /* | .  | || the authors.                                                    */
  5. /* | o  | ||    Dave Baker     Ed Burnette  Jay Denebeim John Mainwaring     */
  6. /* |  . |//     Gordon Keener  Jack Rouse   John Toebes  Doug Walker         */
  7. /* ======                    BBS:(919)-471-6436                              */ 
  8. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  9.  
  10. POPCLI III by John Toebes © 1987 The Software Distillery.  All Rights Reserved
  11.  235 Trillingham Ln, Cary, NC 27511
  12.  
  13. Contributions to continue development of this and other fine products for the
  14. Amiga should be sent to the Software Distillery at the above address.
  15.  
  16. Other Products produced by the Software Distillery are:
  17.    BLINK    - the Turbo-charged Alink replacement
  18.    HACK     - The Amiga port of the famous UNIX game
  19.    LARN     - Another famous UNIX game
  20.    MEMWATCH - Protects your machine from random trashes
  21.    MAKE     - A software development tool one shouldn't be without
  22.    KERMIT   - The World renown file transfer protocol brought to the Amiga
  23.    ICONEXEC, SETALTERNATE, SETWINDOW - Icon manipulation tools
  24.    TSIZE    - A short utility for determining directory sizes.
  25. All of these are available on our BBS.
  26.  
  27. Permission is hereby granted to distribute this program provided both this
  28. documentation accompanies the executable and that no charge is made for its
  29. distribution.
  30.  
  31. POPCLI (pronounced POP-SEE-EL-EYE) is designed to solve two problems at once.
  32. First it provides a simple way of starting another CLI at any time without
  33. having to load workbench or exit whatever program you may be using.  Second
  34. it has a builtin screen saver mode that automatically turns off the Amiga
  35. display when there has been no input for a given period of time.
  36.  
  37. Once POPCLI is running, you can use it to get a new CLI from whatever program
  38. you are running by pressing Left Amiga and ESC at the same time.  What this
  39. does is to bring the workbench screen to the front and then start up a new
  40. CLI window on the workbench screen.  This is extremely handy when you start
  41. a program from CLI and then find you need to do a CLI command.
  42.  
  43. The other function that POPCLI performs is to blank the screen for you.  This
  44. saves on the wear of the monitor phospher.  It will do this for you
  45. automatically any time that you have not pressed any key or moved the mouse
  46. for a given period of time regardless of what has been written to the screen.
  47. This is useful when you leave the Amiga on unattended so that you don't have
  48. to mess with the brightness control or worse yet tunr the monitor off putting
  49. wear and tear on its power supply.  Furthermore it only takes a touch of the
  50. mouse or any key on the keyboard to bring it all back.
  51.  
  52. To use POPCLI, you need to execute the command:
  53.   POPCLI <seconds> <key> <command>
  54.  
  55. Where <seconds> is any number of seconds after which the screen saver is to
  56. go into effect.  If nothing is specified it defaults to turning off the
  57. screen after 300 seconds. (Five minutes)  Note that it makes its decision to
  58. shut blank the screen solely upon the absence of any keyboard, gameport, or
  59. mouse input.  Even if a program is printing to the screen it will shut down.
  60. This is not a problem, to unblank the screen merely move the mouse or touch any
  61. key (SHIFT or CTRL are excellent choices since they don't do anything).
  62.  
  63. <key> is the scan code of the key that you wish to act as the command 
  64. executer.  By default this is the Escape key although you may set it to any
  65. other key if an application you use wants to conflict with PopCLI's choice.
  66.  
  67. <command> is the command to be executed when the Left Amiga and ESC keys are
  68. pressed simaultaneously.  By default the command is
  69.    NEWCLI >NIL:
  70. to bring up a CLI window in the center of the screen.  Note the >NIL: on the
  71. command to supress any output that the NEWCLI program may give.  This is
  72. important because at the time the command is executed, the original window
  73. may be long gone.  If you wish to have a CLI come up elsewhere on the screen
  74. you can put the window definition in the command such as:
  75.    NEWCLI >NIL: CON:0/0/640/200/MYCLI
  76. Which will open a CLI to fill the entire screen.  POPCLI does no parsing on
  77. the command, merely passing the ENTIRE string without any processing to
  78. AmigaDOS.
  79.  
  80. If you wish to specify a command with POPCLI you must include the seconds
  81. value followed by one or more spaces.  Some valid commands are:
  82.    POPCLI 200
  83.    POPCLI 200 NEWCLI >NIL: CON:0/0/640/100/MYWINDOW
  84.    POPCLI 10
  85.    POPCLI 180 NEWCLI >NIL: CON:0/10/640/120/POPUP
  86.  
  87.  
  88. Terminating POPCLI:
  89. -------------------
  90. Once PopCLI has been installed, you can terminate it with the command:
  91.    POPCLI QUIT
  92.  
  93. You can change the default interval by giving a number:
  94.    POPCLI 5      -  sets the default timeout to 5 seconds.
  95. This is handy when you want to blank the screen immediately.  Setting the
  96. interval to a very large number:
  97.    POPCLI 99999
  98. Will keep PopCLI from blanking your screen.
  99.  
  100. Note that you can also use this to change the command that it executes or even
  101. the default key.  Setting the interval does not affect the command to be
  102. executed.
  103.  
  104.  
  105. Installing PopCLI:
  106. ------------------
  107. To install a copy of POPCLI on your workbench, put a copy of POPCLI in your
  108. C directory and edit the Startup-Sequence file in the S directory to add
  109. a POPCLI command of your own taste.
  110.  
  111. Notes:
  112. 1) POPCLI blanks the screen by creating a one bit-blane lo-res screen in front
  113.    of all other screens and setting the background color to solid black.  It
  114.    then turns off the display freeing the cycles for any program that might
  115.    be running.
  116. 2) Once the screen blanks, if the AMIGA is left undisturbed for 68.096 years
  117.    the screen may briefly flash back on for the next 68.096 years.  I have not
  118.    taken the time to test this.  If this turns out to be a problem, please
  119.    let me know.
  120.  
  121. Enhancements Provided under POPCLI II:
  122.  
  123. * POPCLI now runs from WORKBENCH.  An icon is provided for doing so.  When
  124.   run from workbench, the default command and default times will be used.
  125.  
  126. * When run from CLI, the original window now goes away.  In doing so, it
  127.   also appears that incompatibilities with 1.2 have been removed.  Please
  128.   feel free to comment on potential future improvements.
  129.  
  130. * The size of the screen used to blank the display has been reduced to reduce
  131.   memory required to blank the screen.
  132.  
  133. * POPCLI has been recompiled to take advantage of the latest features of 3.04
  134.   Lattice and BLINK.  Although source is being distributed, it is not likely
  135.   that a version of POPCLI could be reconstructed without these products.
  136.  
  137. Enhancements Provided under PopCLI III:
  138.  
  139. * POPCLI has again been recompiled with Lattice 4.0 and Blink 6.9.  The source
  140.   provided will NOT compile with other than the latest version of Lattice.
  141.  
  142. * POPCLI now self installs itself using the seglist splitting technique of
  143.   CBack.  Because of this, you may freely change the timeout interval or command
  144.   without having to reboot your machine.
  145.